package com.ease.map.control {
   import flash.display.Sprite;
   import flash.text.TextField;
   import flash.text.TextFormat;

   import mx.controls.Label;
   import com.ease.map.control.Control;

   public class Blackboard extends Control {
      private var _label:TextField = null;
      private var _labelFormat:TextFormat = null;

      public function Blackboard() {
         this.label = new TextField();
         this.label.multiline = true;
         this.label.width = 250;

         _labelFormat = new TextFormat();
         _labelFormat.size = 12;
         _labelFormat.color = 0x000000;
         _labelFormat.font = "微软雅黑";

         this.label.defaultTextFormat = this._labelFormat ;
         this.label.text = "";
         this.visible = false;
      }

      public function initialize():void {
         this._label.text = "";
      }

      override public function draw():void {
         super.draw();
         this.addChild(label);
      }

      public function setInfo(value:String):void {
         this.label.text = value;
      }

      public function get label():TextField
      {
         return _label;
      }

      public function set label(value:TextField):void
      {
         _label = value;
      }

      public function get labelFormat():TextFormat
      {
         return _labelFormat;
      }

      public function set labelFormat(value:TextFormat):void
      {
         _labelFormat = value;
         this.label.defaultTextFormat = _labelFormat ;
      }


   }
}